Page({
  data: {
    activeButtonType: 'login',
  },
  onLoad() {
   
  },
  handleButtonClick(event){
    const btnType = event.currentTarget.dataset.btnType;
    this.setData({
      activeButtonType: btnType,
    });
    console.log(this.data.activeButtonType);
  },
  onLogin(){
    wx.getUserProfile({
      desc: '用于完善会员资料', // 声明获取用户个人信息后的用途，后续会展示在弹窗中，请谨慎填写
      success: (res) => {
       console.log(res.userInfo);
       this.setData({
         nickName:res.userInfo.nickName,
         touxiang:res.userInfo.avatarUrl
       })
      }
    })
  }
 

  
})